package com.spdzen.model;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.TableId;
import java.io.Serializable;


/**
 * <p>
 * 微信菜单
 * </p>
 *
 * @author accountwcx@qq.com
 * @since 2017-03-16
 */
@TableName("spd_wechat_menu")
public class WechatMenu extends Model<WechatMenu> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜单id
     */

	@TableId("id")
	private Long id;
    /**
     * 上级菜单id，如果上级id为null或者0，则为一级菜单
     */

	@TableField("parent_id")
	private Long parentId;
    /**
     * 菜单级别，微信目前最多有2级菜单
     */

	@TableField("level")
	private Integer level;
    /**
     * 菜单名称
     */

	@TableField("name")
	private String name;
    /**
     * 菜单类型，有parent、view和click
     */

	@TableField("type")
	private String type;
    /**
     * 菜单的值，如果是parent值为空，view菜单值是url，click菜单值是关键字
     */

	@TableField("value")
	private String value;
    /**
     * 同一级别菜单的排序，值越小越在前面，默认是1000
     */

	@TableField("sort")
	private Integer sort;


	public Long getId() {
		return id;
	}

	public WechatMenu setId(Long id) {
		this.id = id;
		return this;
	}

	public Long getParentId() {
		return parentId;
	}

	public WechatMenu setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}

	public Integer getLevel() {
		return level;
	}

	public WechatMenu setLevel(Integer level) {
		this.level = level;
		return this;
	}

	public String getName() {
		return name;
	}

	public WechatMenu setName(String name) {
		this.name = name;
		return this;
	}

	public String getType() {
		return type;
	}

	public WechatMenu setType(String type) {
		this.type = type;
		return this;
	}

	public String getValue() {
		return value;
	}

	public WechatMenu setValue(String value) {
		this.value = value;
		return this;
	}

	public Integer getSort() {
		return sort;
	}

	public WechatMenu setSort(Integer sort) {
		this.sort = sort;
		return this;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}